<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2017/6/5
 * Time: 15:17
 */

namespace zzcx\controllers\base;

use yii\web\Controller;

class BaseController extends Controller
{

    public function actionHome()
    {
        return '首页';
    }

    public function actionError()
    {
        $this->viewPath = ROOT_PATH . "/web/public/html";
        $this->view->defaultExtension = 'html';
        return $this->render('404');
    }
}